package com.zyh.answer.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * t_user_answer实体类
 * @TableName
 */
@TableName(value ="t_user_answer")
public class UserAnswer implements Serializable {
    /**
     * 答题表id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户id（关联user表）
     */
    private Long userId;

    /**
     * 试卷id（关联paper表）
     */
    private Long paperId;

    /**
     * 试题id（关联question表）
     */
    private Long questionId;

    /**
     * 测评记录id（关联record表）
     */
    private Long recordId;

    /**
     * 用户答案
     */
    private Object answer;

    /**
     * 该题得分
     */
    private Integer score;

    /**
     * 答题时间
     */
    private Date answerTime;

    /**
     * 创建人（关联user表）
     */
    private String createBy;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 无效标记（0 有效 2无效）
     */
    private String delFlag;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getPaperId() {
        return paperId;
    }

    public void setPaperId(Long paperId) {
        this.paperId = paperId;
    }

    public Long getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Long questionId) {
        this.questionId = questionId;
    }

    public Long getRecordId() {
        return recordId;
    }

    public void setRecordId(Long recordId) {
        this.recordId = recordId;
    }

    public Object getAnswer() {
        return answer;
    }

    public void setAnswer(Object answer) {
        this.answer = answer;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public Date getAnswerTime() {
        return answerTime;
    }

    public void setAnswerTime(Date answerTime) {
        this.answerTime = answerTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return "UserAnswer{" +
                "id=" + id +
                ", userId=" + userId +
                ", paperId=" + paperId +
                ", questionId=" + questionId +
                ", recordId=" + recordId +
                ", answer=" + answer +
                ", score=" + score +
                ", answerTime=" + answerTime +
                ", createBy='" + createBy + '\'' +
                ", createTime=" + createTime +
                ", delFlag='" + delFlag + '\'' +
                '}';
    }
}